package org.jeecg.modules.dd.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.jeecgframework.poi.excel.annotation.Excel;

import java.io.Serializable;
import java.time.LocalDate;
import java.util.Date;

@Data
@TableName("cn_daka")
public class CnDaka implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(type = IdType.AUTO)
    /**
     * id
     */
    private Integer id;

    /**
     * name
     */
    @Excel(name="姓名",width=25)
    private String name;

    /**
     * phone
     */
    @Excel(name="电话",width=25)
    private String phone;

    /**
     * userid
     */
    private String userid;

    /**
     * address
     */
    @Excel(name="地址",width=25)
    private String address;

    /**
     * 部门
     */
    @Excel(name="部门",width=25)
    private String section;

    /**
     * 项目
     */
    @Excel(name="项目",width=25)
    private String project;

    /**
     * da_time
     */
//    @Excel(name="打卡时间",width=25,format="yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date daTime;
    private LocalDate date;
    @Excel(name="打卡时间",width=25)
    private String remarkDate;
    @Excel(name="类型",width=25)
    private String type;

//    经纬度
    private String longitude;
    private String latitude;
//不在数据库中
//    @TableField(exist = false)


    public CnDaka() {}
}